// 如何部署地址
export const DEPLOY_LINK = 'https://docs.jianmu.dev/guide/how-to-deploy.html';
// 在线体验地址
export const ONLINE_USE_LINK = 'https://docs.jianmu.dev/guide/online-demo.html';

// 开源建木详情地址
export const OPEN_JIANMU_DETAIL_LINK = 'https://mp.weixin.qq.com/s/IgaCHaNjTqJZ13HpbH3HWg';
// 默认日期时间格式
export const DEFAULT_DATETIME_FORMAT = 'yyyy-mm-dd';
// 合作伙伴logo链接
export const links = {
  Assessment: 'https://compass.gitee.com/analyze?label=https%3A%2F%2Fgitee.com%2Fjianmu-dev%2Fjianmu&level=repo#topic_overview',
  XCharge: 'https://www.xcharge.com/',
  Smart: 'https://smartide.cn/zh/',
  Mulan: 'https://portal.mulanos.cn/',
  ShanYang: 'https://www.goatai.cn/',
  Electronic: 'http://www.cesi.cn/page/',
  Duguang: 'https://duguang.io/',
  JiHu: 'https://about.gitlab.cn',
  JiuZhouYun: 'https://www.99cloud.net/',
  Gitee: 'https://gitee.com/',
  ShenWanHongYuan: 'https://www.swhysc.com/swhysc/',
  ShOpen: 'https://www.shanghaiopen.org.cn/',
  JinShi: 'https://www.ezsvs.com/',
  WenZhou: 'http://www.wzu.edu.cn/',
  DongHua: 'https://www.dhu.edu.cn/',
  OpenTekr: 'http://mobile.opentekr.com/home',
  Gitlink: 'https://www.gitlink.org.cn/',
  NetTouch: 'https://www.newtouch.com/',
  BaiYulan: 'http://www.baiyulan.org.cn/',
  TuZhan: 'https://www.rabbitpre.com/',
  ZhengYi: 'http://www.zino.cn/',
  WuGen: 'https://www.clouditera.com/',
  Nepx: 'http://nepxion.com/',
  RainBond: 'https://rainbond.cn/',

};
// gitee未设置头像用户的url
export const GITEE_NO_PORTRAIT_URL = 'https://gitee.com/assets/no_portrait.png';
export const hub = 'https://hub.jianmu.dev';
export const contribution = 'https://gitee.com/jianmu-dev/jianmu';
export const blog = 'https://blog.jianmu.dev';
export const ciDoc = 'https://docs.jianmu.dev/guide/index.html';
export const starLink = 'https://gitee.com/jianmu-dev/jianmu/badge/star.svg?theme=gvp';
// 查看更多文章
export const viewMore = () => {
  window.open('https://blog.jianmu.dev', '_blank');
};
export const quickStart = () => {
  window.open('https://docs.jianmu.dev/guide/quick-start.html', '_blank');
};
export const docs = () => {
  window.open('https://docs.jianmu.dev/guide/index.html', '_blank');
};
export const example = () => {
  window.open('https://ci.jianmu.dev', '_blank');
};
// 能够展示出两根卷轴时的最小屏幕可视高度
export const minShowScrollHeight = 1014;
// 卷轴能够滚动的高度
export const canScrollHeight = 7255;
export const dsl =
  'name: 建木官网CDN CI/CD\n' +
  'description: 建木官网CDN CI/CD\n\n' +
  'pipeline:\n' +
  '  git_clone:\n' +
  '    type: git_clone:1.0.0\n' +
  '    param:\n' +
  '      remote_url: https://gitee.com/jianmu-dev/jianmu-official-site.git\n' +
  '      ref: refs/heads/master\n' +
  '      netrc_machine: gitee.com\n' +
  '      netrc_username: ((gitee.username))\n' +
  '      netrc_password: ((gitee.password))\n' +
  '  node_build:\n' +
  '    type: nodejs_build:1.0.0-14.16.1\n' +
  '    param:\n' +
  '      workspace: ${git_clone.git_path}\n' +
  '      build_arg: --mode cdn\n' +
  '  qiniu_upload:\n' +
  '    type: qiniu_upload:1.0.1\n' +
  '    param:\n' +
  '      qiniu_bucket: jianmu\n' +
  '      qiniu_ak: ((qiniu.AccessKey))\n' +
  '      qiniu_sk: ((qiniu.SecretKey))\n' +
  '      qiniu_zone: z1\n' +
  '      qiniu_upload_uri_prefix: ${node_build.package_name}/${node_build.package_version}\n' +
  '      qiniu_upload_dir: ${git_clone.git_path}/dist\n' +
  '  update_index_page:\n' +
  '    type: scp_resouce:1.0.0\n' +
  '    param:\n' +
  '      ssh_private_key: ((private_key.alixg))\n' +
  '      ssh_ip: 47.243.164.48\n' +
  '      remote_file: /etc/nginx/html/index.html\n' +
  '      local_file: ${git_clone.git_path}/dist/index.html\n' +
  '  send_message:\n' +
  '    type: qywx_notice:1.0.0\n' +
  '    param:\n' +
  '      bot_webhook_url: ((charbot.webhook_url))\n' +
  '      mentioned_moblie_list: "[]"\n' +
  '      text_content: "建木官网CDN更新完成\\\\n\\\\n版本：${node_build.package_version}"\n' +
  '      msgtype: "text"\n' +
  '      mentioned_list: "[]"';
export const workFlow =
  'name: 建木官网CDN CI/CD\n' +
  'description: 建木官网CDN CI/CD\n\n' +
  'workflow:\n' +
  '  start:\n' +
  '    type: start\n' +
  '    targets:\n' +
  '      - git_clone\n' +
  '  git_clone:\n' +
  '    type: git_clone:1.0.0\n' +
  '    sources:\n' +
  '      - start\n' +
  '    targets:\n' +
  '      - node_build\n' +
  '    param:\n' +
  '      remote_url: https://gitee.com/jianmu-dev/jianmu-official-site.git\n' +
  '      ref: refs/heads/master\n' +
  '      netrc_machine: gitee.com\n' +
  '      netrc_username: ((gitee.username))\n' +
  '      netrc_password: ((gitee.password))\n' +
  '  node_build:\n' +
  '    type: nodejs_build:1.0.0-14.16.1\n' +
  '    sources:\n' +
  '      - git_clone\n' +
  '    targets:\n' +
  '      - qiniu_upload\n' +
  '    param:\n' +
  '      workspace: ${git_clone.git_path}\n' +
  '      build_arg: --mode cdn\n' +
  '  qiniu_upload:\n' +
  '    type: qiniu_upload:1.0.1\n' +
  '    sources:\n' +
  '      - node_build\n' +
  '    targets:\n' +
  '      - update_index_page\n' +
  '    param:\n' +
  '      qiniu_bucket: jianmu\n' +
  '      qiniu_ak: ((qiniu.AccessKey))\n' +
  '      qiniu_sk: ((qiniu.SecretKey))\n' +
  '      qiniu_zone: z1\n' +
  '      qiniu_upload_uri_prefix: ${node_build.package_name}/${node_build.package_version}\n' +
  '      qiniu_upload_dir: ${git_clone.git_path}/dist\n' +
  '  update_index_page:\n' +
  '    type: scp_resouce:1.0.0\n' +
  '    sources:\n' +
  '      - qiniu_upload\n' +
  '    targets:\n' +
  '      - send_message\n' +
  '    param:\n' +
  '      ssh_private_key: ((private_key.alixg))\n' +
  '      ssh_ip: 47.243.164.48\n' +
  '      remote_file: /etc/nginx/html/index.html\n' +
  '      local_file: ${git_clone.git_path}/dist/index.html\n' +
  '  send_message:\n' +
  '    type: qywx_notice:1.0.0\n' +
  '    sources:\n' +
  '      - update_index_page\n' +
  '    targets:\n' +
  '      - end\n' +
  '    param:\n' +
  '      bot_webhook_url: ((charbot.webhook_url))\n' +
  '      mentioned_moblie_list: "[]"\n' +
  '      text_content: "建木官网CDN更新完成\\\\n\\\\n版本：${node_build.package_version}"\n' +
  '      msgtype: "text"\n' +
  '      mentioned_list: "[]"\n' +
  '  end:\n' +
  '    type: end\n' +
  '    sources:\n' +
  '      - send_message';
